#!/bin/bash

rm -rf ./demo-backend-system-for-java

git clone https://99470140%40qq.com:bigboss117@gitee.com/ding-qiwei/demo-backend-system-for-java.git

cd ./demo-backend-system-for-java

mvn clean package -pl demo-admin -am -Dmaven.test.skip=true -U

cd /home/demo/demo-admin

./server.sh stop

./server.sh backup

cp /home/demo/deploy/demo-backend-system-for-java/target/demo-admin.jar /home/demo/demo-admin/demo-admin.jar

./server.sh start

cd /home/demo/deploy

rm -rf ./demo-backend-system-for-java
